<?php

namespace app\api\model;

use think\Model;

class TeacherClasses extends Model
{
    public static function getClassIds($teacher_id)
    {
        return self::where('teacher_id', $teacher_id)->column('class_id');
    }

    public static function getTeacherIds($class_id)
    {
        return self::whereIn('class_id', $class_id)->column('teacher_id');
    }
}
